package src.event.events;

import src.event.Event;
import src.model.gameWorld.Position;

public class UpdateView extends Event {
	
	private Position oldPos, newPos;
	private int radius;
	
	public UpdateView(Position oldPosition, Position newPosition, int viewRadius) {
		oldPos = oldPosition;
		newPos = newPosition;
		radius = viewRadius; 
	}
	
	public Position getOldPosition()
	{
		return oldPos;
	}
	
	public Position getNewPosition()
	{
		return newPos;
	}
	
	public int getViewRadius()
	{
		return radius;
	}
	
	@Override
	public String toString() {
		return "Update View Event - Old Position: " + oldPos + " New Position: " + newPos + "Radius: " + radius;
	}

}
